<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  	<meta charset="UTF-8">
	<title>CRM后台审核管理</title>
	<link rel="stylesheet" href="../css/bootstrap.min.css">
	<script src="../js/jquery-1.11.1.js"></script>
	<script src="../js/bootstrap.min.js"></script>
	<style>
		body{margin:70px;};
		
	</style>
	
</head>
<body>
	<div class="panel panel-default">
		<div class="panel-heading">
			<div class="panel-title">
				客户池
			</div>
		</div>
		<div class="panel-body">
			<button class="btn btn-default">全选</button>
			<div class="list-group">
				<div class="list-group-item">
					<div class="row">
						<div class="col-xs-1"></div>
						<div class="col-xs-2">名字</div>
						<div class="col-xs-2">性别</div>
						<div class="col-xs-2">住址</div>
						<div class="col-xs-2">出生日期</div>
					</div>
				</div>
			</div>
			<div class="row" style="text-align:right;margin-right:2px">
				<button class="btn btn-default">全部取消</button>
				<button class="btn btn-default">挑入选中</button>
			</div>
		</div>
	</div>
	<script>
		$(function(){
			$.post('./Pool.php',{aid:'null'},function(pool){
				for (var a = 0;; a++) {
					try{
						$('<div>', {'class':'list-group-item','id':'info'+pool[a].id}).appendTo($('.list-group'));
						$('<div>',{'class':'row'}).appendTo($('#info'+pool[a].id));
						$('<div>',{html:$('<input>',{'type':'checkbox','style':'text-align:left;margin-top:7px'}),'class':'col-xs-1'}).appendTo($('#info'+pool[a].id+' .row'));
						$('<div>',{html:pool[a].name,'class':'col-xs-2','style':'margin-top:3px'}).appendTo($('#info'+pool[a].id+'>.row'));
						$('<div>',{html:pool[a].sex,'class':'col-xs-2','style':'margin-top:3px'}).appendTo($('#info'+pool[a].id+'>.row'));
						$('<div>',{html:pool[a].place,'class':'col-xs-2','style':'margin-top:3px'}).appendTo($('#info'+pool[a].id+'>.row'));
						$('<div>',{html:pool[a].date,'class':'col-xs-2','style':'margin-top:3px'}).appendTo($('#info'+pool[a].id+'>.row'));
						$('<div>',{'id':'button','class':'col-xs-3','style':'text-align:right'}).appendTo($('#info'+pool[a].id+'>.row'));
						$('<button>',{html:'挑入','class':'btn btn-default btn-sm'}).appendTo($('#info'+pool[a].id+'>.row>#button'));
					}catch(e){
						break;
					}
					
				}
			},'json')
		})
	</script>
 </body>
 </html>